package com.xin.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xin.dao.VaccinationMapper;
import com.xin.model.Vaccination;
import com.xin.service.IVaccinationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * @Author 夜天
 * @Date 2022/4/20 9:46
 * @Version 1.0.0
 * @description：
 */
@Service
public class VaccinationServiceImpl implements IVaccinationService {
    @Autowired
    private VaccinationMapper vaccinationMapper;

    @Override
    public PageInfo<Vaccination> findVaccinationAll(int page, int pageSize,Vaccination vaccination){
        PageHelper.startPage(page,pageSize);
        List<Vaccination> vaccinations = vaccinationMapper.queryVaccinationAll();
        return new PageInfo<>(vaccinations);
    }

    @Override
    public boolean saveBatch(Collection<Vaccination> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<Vaccination> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<Vaccination> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(Vaccination entity) {
        return false;
    }

    @Override
    public Vaccination getOne(Wrapper<Vaccination> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<Vaccination> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<Vaccination> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<Vaccination> getBaseMapper() {
        return null;
    }
}
